//
//  DisCoverHeaderView.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/7/17.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "DisCoverHeaderView.h"

@implementation DisCoverHeaderView


-(void)awakeFromNib{
    [super awakeFromNib];
    
    [self addClick];

}
-(void)addClick{


    
    UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(ActivityViewClick)];
    [self.ActivityView addGestureRecognizer:tap];
    [self.ActivityView setUserInteractionEnabled:YES];
    
    UITapGestureRecognizer * tap2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(InformationViewClick)];
    [self.InformationView addGestureRecognizer:tap2];
    [self.InformationView setUserInteractionEnabled:YES];
    
}

- (void)ActivityViewClick{
    
    if ([self.delegate respondsToSelector:@selector(ActivityViewClick)]) {
        [self.delegate ActivityViewClick];
    }
}

- (void)InformationViewClick{
    
    if ([self.delegate respondsToSelector:@selector(InformationViewClick)]) {
        [self.delegate InformationViewClick];
    }
}
@end
